﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSenior
{
    public partial class CreateTrip : System.Web.UI.Page
    {
        public String startDate
        {
            get
            {
                return SDate.Text;
            }
        }

        public string endDate
        {
            get
            {
                return EDate.Text;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void SBtnToggle_Click(object sender, EventArgs e)
        {
            Calendar1.Visible = !Calendar1.Visible;
        }

        protected void SCalSelectDate(object sender, EventArgs e)
        {
            SDate.Text = Calendar1.SelectedDate.ToShortDateString();
            Calendar1.Visible = false;
        }

        protected void EBtntoggle_Click(object sender, EventArgs e)
        {
            Calendar2.Visible = !Calendar2.Visible;
        }

        protected void ECalSelectDate(object sender, EventArgs e)
        {
            EDate.Text = Calendar2.SelectedDate.ToShortDateString();
            Calendar2.Visible = false;
        }

    }
}